<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>6_ng-model</title>
    <script src="../lib/angularjs.js"></script>
</head>

<body>
    <div ng-app="myApp" ng-controller="appCtrl">
        <input type="text" ng-model="appData" />
        <p>{{appData}}</p>
    </div>
</body>
<script>
    const myApp = angular.module("myApp", [])
    myApp.controller("appCtrl", ["$scope", function($scope){
        $scope.appData = "none data, please input!"
    }])
</script>

</html>